import Mock from "mockjs";
const addressList = [];
const count = 3;




for (let i = 0; i < count; i++) {
    addressList.push( Mock.mock(
        {
            id: '@increment()',
            province: '@province()',
            city: '@city()',
            street: '@county()',
            'isDefault|1': [0, 1], 
            createTime: '@datetime("yyyy-MM-dd HH:mm:ss")'
        }
    ))
}
Mock.mock(/\/address\/getList/, 'get', (options) => {
    console.log(options);
    return {
        code: 200,
        msg: "数据获取成功",
        data: {
            total: addressList.length,
            data: addressList,
        }
    }
})
export default Mock;